package com.qitmiaojie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName health
 */
@TableName(value ="health")
@Data
public class Health implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 姓名
     */
    private String username;

    /**
     * 学号
     */
    private String sid;

    /**
     * 宿舍号
     */
    private String sushe;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 是否发热
     */
    private String fare;

    /**
     * 是否甲流
     */
    private String jialiu;

    /**
     * 是否新冠
     */
    private String xinguan;

    private String nuoru;

    /**
     * 抗原状态
     */
    private String kangyuan;

    /**
     * 抗原照片
     */
    private String url;
    //是否康复
    private Integer recovery;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;

    private Integer uid;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
